from . import views
from django.urls import re_path, path

urlpatterns = [
    # 城区列表
    re_path(r'^api/v1.0/areas$', views.AreaView.as_view()),
    # 发布房源 -- 搜索
    re_path(r'^api/v1.0/houses$', views.HomeSearchView.as_view()),
    # 上传图片
    path('api/v1.0/houses/<int:house_id>/images', views.HouseImageView.as_view()),
    # 房屋列表
    re_path(r'^api/v1.0/user/houses$', views.UserHouseView.as_view()),

    # 房屋首页推荐
    re_path(r'^api/v1.0/houses/index$', views.HomePageView.as_view()),

    # 详情页
    path('api/v1.0/houses/<int:house_id>', views.HouseInfoView.as_view())
]
